//导入express模块
const express = require('express')

//使用路由
const article = express.Router()

//引入handle模块
const art_handle = require('../handle-article/article')

//添加新闻
article.post('/addArticle', art_handle.addArticle)
// 通过新闻类别获取新闻
article.post('/getArticle', art_handle.getArticle)
//通过id获取新闻详情
article.post('/getDetail', art_handle.getDetail)
//删除新闻
article.post('/deleteArticle', art_handle.deleteArticle)

module.exports = article